package com.woniu.server.controller;

import com.woniu.common.utils.PageData;
import com.woniu.common.utils.ResponseData;
import com.woniu.server.dto.ProjectInfoDto;
import com.woniu.server.service.ProjectApplicationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author hht
 * @Date Create by 2024/11/25 14:17
 */
@RestController
@RequestMapping("/approval")
public class ApprovalController {
    @Autowired
    private ProjectApplicationService projectApplicationService;


    @PostMapping("/queryProjectList")
    public ResponseData<?> queryProjectList(@RequestBody PageData<ProjectInfoDto> pageData){
       return projectApplicationService.queryProjectList(pageData);
    }

    @PostMapping("/doApproval")
    public ResponseData<?> doApproval(@RequestBody ProjectInfoDto projectInfoDto){
        return projectApplicationService.doApproval(projectInfoDto);
    }


}
